﻿//using GalaSoft.MvvmLight;
//using GalaSoft.MvvmLight.Command;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Collections.Generic;
using System.Windows.Input;

namespace AZai.Model
{
    public class TempModel : ObservableObject//ViewModelBase
    {
        private string _ID;
        /// <summary>
        /// 属性.
        /// </summary>
        public string ID
        {
            get { return _ID; }
            set { SetProperty(ref _ID, value); }
        }

        private string _Name;
        /// <summary>
        /// 属性.
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set { SetProperty(ref _Name, value); }
        }

        private string _Remark;
        /// <summary>
        /// 属性.
        /// </summary>
        public string Remark
        {
            get { return _Remark; }
            set { SetProperty(ref _Remark, value); }
        }

        private List<string> _List;
        /// <summary>
        /// 属性.
        /// </summary>
        public List<string> List
        {
            get { return _List; }
            set { SetProperty(ref _List, value); }
        }

        private bool _IsOpenMenu;
        /// <summary>
        /// 属性.
        /// </summary>
        public bool IsOpenMenu
        {
            get { return _IsOpenMenu; }
            set { SetProperty(ref _IsOpenMenu, value); }
        }

        /// <summary>
        /// 命令Command
        /// </summary>
        public ICommand OpenMenuCommand => new RelayCommand(() =>
        {
            IsOpenMenu = true;
        });

    }
}
